package com.heima.App;

import com.heima.Pojo.Clazz;
import com.heima.Pojo.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

public class AppClazz {
    public static void main(String[] args) {
        ApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext-clazz.xml");
        Clazz clazz = (Clazz) cpac.getBean("clazz");

        System.out.println(clazz.getStudents());
        System.out.println(clazz.getAdrees());
    }
}
